/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javase202202 - Format2
 * <p>Powered by Lisi On 2022-05-30 09:45:02
 * <p>Created by IntelliJ IDEA
 *

 * @version 1.0
 * @since 17
 */
public class Format2 {
    public static void main(String[] args) {
        //通过System类对象的currentTimeMillis() 方法返回当前系统的时间戳 long
        long now = System.currentTimeMillis();//1970 1 1 8:0:0 开始的
        System.out.println(now);
        System.out.printf("%tF %<tT%n",now);
        System.out.printf("%tF %<tR%n",now);
        System.out.printf("%tF %<tR%n",0L);
        System.out.println("-----------------------------");
        System.out.printf("%tY年%<tm月%1$td日 %<tH时%<tM分%<tS秒 %<tA %n",now);
        System.out.printf("%tY%<tm%1$td%<tH%<tM%<tS_%<ts.jpg %n",now);


    }
}
